﻿// See https://aka.ms/new-console-template for more information
using System.Net.Sockets;
using System.Net;
using KcpSharp;

Console.WriteLine("Hello, World!");
using var conversation = new KcpConversation(transport, conversationId, new KcpConversationOptions { StreamMode = true });

// Or if you are using the built-in UDP socket transport
using var transport = KcpSocketTransport.CreateConversation(socket, endPoint, conversationId, new KcpConversationOptions { StreamMode = true });